<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- <title></title> -->
<link href="/Public/home/css/style.css" type="text/css" rel="stylesheet" />
<script src="/Public/home/js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="/Public/home/js/common.js"  type="text/javascript"></script>
<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script src="/Public/home/js/message_verify.js"></script>
<script>
    $(function(){   
    $('a[href*=#],area[href*=#]').click(function() {
        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body,.div1').animate({
                    scrollTop: targetOffset
                },
                1000);
                return false;
            }
        }
    });
})
</script>
</head>
<body class="index">
﻿<div class="top">
    <div class="w1200">
        <?php if(!empty($session_name)){ ?>
            <div class="left">您好，&nbsp;<a style="font-size: 15px;color: red;"><?php echo session('name'); ?></a>&nbsp;欢迎光临Let`s购！<a href="/Home/Index/loginout.html">[退出登录]</a></div>
            <div class="right"><a href="/Home/Personcenter/member.html">我的会员中心</a>|<a href="#">收藏夹</a>|<a href="#">服务中心</a>|<a href="#">在线客服</a>|<a href="/Home/Shopcar/shopcar.html" class="top_car">购物车<b><?php echo ($comnum); ?></b>件</a></div>
        <?php }else{ ?>
          <div class="left">您好，欢迎光临Let`s购！<a href="/Home/Index/login.html">[登录]</a> <a href="/Home/Index/reg.html">[注册]</a></div>
          <div class="right"><a href="/Home/Index/login.html">我的会员中心</a>|<a href="/Home/Index/login.html">收藏夹</a>|<a href="/Home/Index/login.html">服务中心</a>|<a href="/Home/Index/login.html">在线客服</a>|<a href="/Home/Index/login.html">购物车<b>0</b>件</a></div>
        <?php } ?>
        
        <div class="clear"></div>
    </div>
</div>

<div class="head">
    <div class="w1200">
        <div class="logo"><a href="/Home/Index/index.html"></a></div>
        <div class="search">
            <form action="#" class="form">
                <input type="text" value="输入商品关键字" name="keyword" class="txt" onfocus="if(value=='输入商品关键字') {value=''}" onblur="if(value=='') {value='输入商品关键字'}"/>
                <input type="submit" value="搜索" class="sub"/>
            </form>
            <!-- <p><a href="#">iphone6s</a>|<a href="#">面膜</a>|<a href="#">婚庆床品</a>|<a href="#">运动鞋</a>|<a href="#">眼霜</a>|<a href="#">月饼</a>|<a href="#">智能手机</a>|<a href="#">连衣裙</a></p> -->
        </div>
        <div class="s_r">
            <dl>
                <dt>
                    <p class="shopcar_all" >购物车<span><?php echo ($comnum); ?></span></p>
                    <div class="com_car" style="">
                        <div class="line" ></div>
                        <div class="car_head" >最新添加的商品</div>
                        <hr>
                        <div class="commodity_list">
                            <?php if($comnum==0){ ?>
                                <div>购物车中还没商品，赶紧选购吧！</div>
                            <?php }else{ ?>
                                <div  style="overflow-y:scroll;width:98%;height: 150px;">
                                    <table style="width: 100%;overflow-y:scroll;text-align: center;overflow-y:scroll;" id="shop" >
                                        <tr style="height: 30px;border: 1px solid black;">
                                            <td>图片</td>
                                            <td style="text-align: center;">商品简介</td>
                                            <td>单价X数量</td>
                                            <td>总价</td>
                                            <td>删除</td>
                                        </tr>
                                        <?php $a=0;foreach($shopCar as $key => $value){ ?>
                                            <tr class="shopcar-tr">
                                                <td class="shopcar-td">
                                                    <a ><img src="/Public/upload/<?php echo $value['com_img_name']; ?>" class="shopcar-img"></a>
                                                </td>
                                                <td class="shopcar-name">
                                                    <a ><?php echo $value['com_name'].'　'.$value['com_discription']; ?></a>
                                                </td>
                                                <td><?php echo $value['com_price'].'X'.$value['com_num']; ?></td>
                                                <td><?php echo $value['com_price']*$value['com_num']; ?></td>
                                                <td><a href="/Home/Shopcar/delete?shopid=<?php echo $value['id']; ?>" class="delcar"><button  class="headdel" >删除</button></a></td>
                                            </tr>
                                        <?php $a=$a+$value['com_price']*$value['com_num'];} ?>
                                    </table>
                                </div>
                                
                                <div class="shop-foot">
                                    <span">总计：<?php echo $a; ?></span>
                                    <span style="float: right;"><button><a href="/Home/Shopcar/shopcar" class="go-shopcar" >去购物车</a></button></span>
                                </div>
                            <?php } ?>
                        </div>
                    </div>
                </dt>
                <dd>客服电话：<b>123-4567-891</b></dd>
            </dl>
        </div>
        <div class="clear"></div>
    </div>
</div>

<div class="menu">
    <div class="w1200">
        
        <div class="item"><a href="/Home/Index/index.html" class="home">商城首页</a></div>
        <div class="item"><a href="/Home/Product/product.html" class="timg">商品中心</a></div>
        <!-- 博客分类导航条 -->
        <div>
            <div class="left_nav"></div>
              <ul class="nav navbar-nav first_nav" id="nav">
                <?php foreach($cates as $cate){?>
                <!-- 顶级分类不显示 -->
                        <?php if(!empty($cate['child'])){?>
                            <ul id="third_nav">
                                <?php foreach ($cate['child'] as $child) {?>
                                    <li  class="item" id="third_content"><a href="/Home/Product/product.html?cateid=<?php echo $child['id']; ?>"><?php echo $child['cate_name']?></a>
                                        <?php if(!empty($child['child'])){?>
                                            <ul id="four_nav" style="display: none;">
                                                <?php foreach ($child['child'] as $childson) {?>
                                                    <li style=""><a href="/Home/Product/product.html?cateid=<?php echo $childson['id']; ?>"><?php echo $childson['cate_name']?></a>
                                                <?php }?>
                                            </ul>
                                        <?php } ?>
                                <?php } ?>
                            </ul>
                        <?php } ?>
                    <!-- </li> -->
                <?php }?>
              </ul>
            </div><!-- /.container-fluid -->
        </div>
        <!-- 博客分类导航条 -->
    </div>
</div>
<script type="text/javascript">
    $('#third_nav > li').on('mouseover',function(){
        $(this).find('#four_nav').show();
        $(this).find('#four_nav').css('background','#404145');
        $(this).find('#four_nav').css('color','#fff');
        $(this).find('#four_nav').css('position','absolute');
        $(this).css('position','relative');
    });
    $('#third_nav > li').on('mouseout',function(){
        $(this).find('#four_nav').hide();
    });

</script>
<!-- 购物车商品显示 -->
<script type="text/javascript">
    $(function(){
        $('.shopcar_all').hover(function(){
            $('.com_car').css('display','block');
        },function(){
            $('.com_car').css('display','none');
        });
        $('.com_car').hover(function(){
            $('.com_car').css('display','block');
        },function(){
            $('.com_car').css('display','none');
        });
        $('.delcar').on('click',function(){
            $(this).parent().parent().remove();
            $.get($(this).attr('href'),function(){});
            return false;
        });
    });
</script>
    <!--===========layout-container================-->
   ﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>提交订单信息</title>
<link href="/Public/home/css/style.css" type="text/css" rel="stylesheet" />
<script src="/Public/home/js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="/Public/home/js/common.js"  type="text/javascript"></script>

</head>
<body class="index">

<form action="<?php echo ($payact); ?>" method="post">
  <div class="w1200">
  	<div class="position"><a href="#">首页</a> > <a href="#">确认订单</a></div>
      <div class="shopcar">
      	<div class="info_lc"><span class="sp01">我的购物车</span><span class="sp02">填写提交信息表单</span><span class="sp03">在线支付</span></div>
          <dl class="info">
          	<dt><span>确认收货地址</span></dt>
            <dl class="dl02 personinfo">
                <dt>
                    <span>已添加地址</span><a href="<?php echo ($addAddress); ?>" style="float: right"><span>地址管理-></span></a>
                </dt>
                <div>&nbsp;</div>
                <?php $i=1; ?>
                <?php foreach($addresses as $key => $value){ ?>
                    <?php if($i<=5){ ?>
                        <label>
                            <div class="addressSelect">
                                <div><input type="radio" class="addressid address_id" name="address_id" value="<?php echo $value['id']; ?>"  checked="checked"></div>
                                <ul class="Addressinfo Address_info">
                                    <div class="address_title"><a href="#" class="modify " title="修改信息"></a>第<?php echo $i; ?>条地址信息 <a href="javascript:over('0')" class="delete "><i class="iconfont icon-close"></i></a></div>
                                    <li>收件人：<?php echo $value['username']; ?></li>
                                    <li>收件地址：<?php echo $value['address']; ?></li>
                                    <li>联系方式：<?php echo $value['phone']; ?></li>
                                    <li>邮编：<?php echo $value['postcode']; ?></li>
                                </ul>  
                                <div><a href="<?php echo ($del); ?>?id=<?php echo $value['id']; ?>"><button class="return_del" style="">删除</button></a></div>
                               <!--  <div>&nbsp;</div>  
                                <div>&nbsp;</div>  
                                <div>&nbsp;</div>  --> 
                            </div>
                        </label>
                <?php }$i++;} ?>
            </dl>
            <dt>
                
            </dt>
            

          </dl>
          
          <dl>
          	<dt><span>确认订单信息</span></dt>
              <dd>
              	<table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr class="tr_t">
                    	<td width="2%">&nbsp;</td>
                      <td width="48%">商品</td>
                      <td width="25%">单价</td>
                      <td width="13%">数量</td>
                      <td width="12%">小计</td>
                    </tr> 
                    <?php $i=0;foreach($shopcar as $key => $v){ ?>
                        <?php foreach($v as $k => $value){ ?>
                          <tr class="tr_c">
                          	<td>&nbsp;</td>
                            <td>
                            	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="15%"><img src="/Public/upload/<?php echo $value['com_img_name']; ?>"/><input type="hidden" name="comid[]" value="<?php echo $value['id']; ?>"></td>
                                          <td width="85%"><a href="#" class="title"><?php echo $value['com_name'].'　'.$value['com_discription'];?></a></td>
                                        </tr>
                              </table>
                            </td>
                            <td class="price">￥<?php echo $value['com_price']; ?></td>
                            <td><?php echo $value['com_num']; ?></td>
                            <td class="price">￥<?php echo $value['com_price']*$value['com_num'];?></td>
                          </tr>
                    <?php }$i+=$value['com_price']*$value['com_num'];} ?>
                    <tr class="tr_d">
                        <td colspan="7">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="3%">&nbsp;</td>
                                <td width="12%">快递费：</td>
                                <td width="65%"><font>￥10<input type="hidden" name="express" value="10"></font></td>
                                <td width="10%">状态：</td>
                                <td width="10%" class="all_price"><font>待付款</font></td>
                              </tr>
                            </table>
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <tr class="tr_d">
                      <td colspan="7">
                      	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                            	<td width="3%">&nbsp;</td>
                              <td width="12%">买家留言：</td>
                              <td width="65%"><input type="text" name="message" class="msg"/></td>
                              <td width="10%">应付金额：</td>
                              <td width="10%" class="all_price"><font>￥<?php echo $i+10; ?><input type="hidden" name="all_price" value="<?php echo $i; ?>"></font></td>
                            </tr>
                          </table>
                      </td>
                    </tr>
                  </table>
                  <div class="clear"></div> 
         		  </dd>
              </dl>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="go_tb">
               <tr>
                 <td width="20%"><a href="<?php echo ($product); ?>" class="go_buy">继续购物</a></td>
                 <td width="63%">&nbsp;</td>
                 <td width="17%" align="right"><button type="submit"><a class="code">结 算</a></button></td>
               </tr>
              </table>
</form>        
              <div class="clear"></div>
          </div>
      </div>

<!--footer-->



</body>
</html>

  <!--===========layout-footer================-->
 <div class="footer">
	<div class="f_bz">
    	<div class="w1200">
            <dl class="dl01">
                <dt>正品保证</dt>
                <dd>正品护航  购物无忧</dd>
            </dl>
            <dl class="dl02">
                <dt>你消费 我买单</dt>
                <dd>返现购物商城</dd>
            </dl>
            <dl class="dl03">
                <dt>品类丰富</dt>
                <dd>品类齐全 轻松购物</dd>
            </dl>
            <dl class="dl04">
                <dt>特色服务体验</dt>
                <dd>为您呈现不一样的服务</dd>
            </dl>
            <div class="clear"></div>
        </div>
    </div>
	<div class="f_nav">
    	<div class="w1200">
            <dl>
                <dt>新手指南</dt>
                <dd>
                    <a href="reg.html">注册新用户</a>
                    <a href="#">商品订购流程</a>
                    <a href="#">会员注册协议</a>
                </dd>
            </dl>
            <dl>
                <dt>付款方式</dt>
                <dd>
                    <a href="#">支付宝支付</a>
                    <a href="#">网上银行支付</a>
                    <a href="#">货到付款</a>
                </dd>
            </dl>
            <dl>
                <dt>常见问题</dt>
                <dd>
                    <a href="#">订单状态</a>
                    <a href="#">发票说明</a>
                </dd>
            </dl>
            <dl>
                <dt>售后服务</dt>
                <dd>
                    <a href="#">退换货政策</a>
                    <a href="#">退换货流程</a>
                    <a href="#">退款说明</a>
                    <a href="#">退换货申请</a>
                </dd>
            </dl>
            <dl>
                <dt>客服中心</dt>
                <dd>
                    <a href="#">常见问题</a>
                    <a href="#">联系客服</a>
                    <a href="#">投诉与建议</a>
                </dd>
            </dl>
            <div class="ewm"><img src="/Public/home/images/home/ico35.png"/></div>
            <div class="ewm"><img src="/Public/home/images/home/ico38.png"/></div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="w1200">
        <div class="bottom">
            <a href="#">关于我们</a>|<a href="#">帮助中心</a>|<a href="#">法律声明</a>|<a href="#">用户协议</a>|<a href="#">联系我们</a>|<a href="#">人才招聘</a>|<a href="#">站点地图</a>
           
            <!-- <p>网络文化经营许可证：粤网文[2015]0295-065号<br />© 2015 深圳易易城科技网络有限公司. 粤ICP备15042543号</p> -->
            <p>网络文化经营许可证：ＸＸＸ[2017]1234-567号<br />© 2017 ＸＸＸＸＸ科技网络有限公司. ＸICP备12345678号</p>
            <p class="p02"><img src="/Public/home/images/home/ico25.jpg"/><img src="/Public/home/images/home/ico26.jpg"/><img src="/Public/home/images/home/ico27.jpg"/><img src="/Public/home/images/home/ico36.jpg"/><img src="/Public/home/images/home/ico37.jpg"/></p>
        </div>
    </div>
</div>
<!--float_right-->
<div class="float">
    <ul>
        <li><a href="/index.php/Home/Shopcar/shopcar.html" class="a01"></a></li>
        <li><a href="#" class="a02"></a></li>
        <li><a href="#" class="a03"></a></li>
        <li><a href="#" class="a04"></a></li>
        <li><a href="#top" class="a05"></a></li>
    </ul>
</div>
<script language="javascript" type="text/javascript">
$(function () {
        var dv = $(".idx01").offset().top;
        var dv2 = $(".idx02").offset().top;
        var dv3 = $("#idx03").offset().top;
        var dv4 = $("#idx04").offset().top;
        var dv5 = $("#idx05").offset().top;
        var dv6 = $("#idx06").offset().top;
        window.onscroll=function(){
            if(dv<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a01").addClass("on");
                
            }
            if(dv2<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a02").addClass("on");
            }
            if(dv3<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a03").addClass("on");
            }
            if(dv4<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a04").addClass("on");
            }
            if(dv5<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a05").addClass("on");
            }
            if(dv6<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a06").addClass("on");
            }
        }
    });
</script>
<script language="javascript" type="text/javascript">
<!--//--><![CDATA[//><!--
//图片滚动列表 mengjia 070816
var Speed = 10; //速度(毫秒)
var Space = 10; //每次移动(px)
var PageWidth = 404; //翻页宽度
var fill = 0; //整体移位
var MoveLock = false;
var MoveTimeObj;
var Comp = 0;
var AutoPlayObj = null;
GetObj("List2").innerHTML = GetObj("List1").innerHTML;
GetObj('ISL_Cont').scrollLeft = fill;
GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);}
GetObj("ISL_Cont").onmouseout = function(){AutoPlay();}
AutoPlay();
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval

('document.all.'+objName)}}
function AutoPlay(){ //自动滚动
clearInterval(AutoPlayObj);
AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',5000); //间隔时间
}
function ISL_GoUp(){ //上翻开始
if(MoveLock) return;
clearInterval(AutoPlayObj);
MoveLock = true;
MoveTimeObj = setInterval('ISL_ScrUp();',Speed);
}
function ISL_StopUp(){ //上翻停止
clearInterval(MoveTimeObj);
if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){
Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth);
CompScr();
}else{
MoveLock = false;
}
AutoPlay();
}
function ISL_ScrUp(){ //上翻动作
if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj

('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth}
GetObj('ISL_Cont').scrollLeft -= Space ;
}
function ISL_GoDown(){ //下翻
clearInterval(MoveTimeObj);
if(MoveLock) return;
clearInterval(AutoPlayObj);
MoveLock = true;
ISL_ScrDown();
MoveTimeObj = setInterval('ISL_ScrDown()',Speed);
}
function ISL_StopDown(){ //下翻停止
clearInterval(MoveTimeObj);
if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){
Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill;
CompScr();
}else{
MoveLock = false;
}
AutoPlay();
}
function ISL_ScrDown(){ //下翻动作
if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft =

GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;}
GetObj('ISL_Cont').scrollLeft += Space ;
}
function CompScr(){
var num;
if(Comp == 0){MoveLock = false;return;}
if(Comp < 0){ //上翻
if(Comp < -Space){
   Comp += Space;
   num = Space;
}else{
   num = -Comp;
   Comp = 0;
}
GetObj('ISL_Cont').scrollLeft -= num;
setTimeout('CompScr()',Speed);
}else{ //下翻
if(Comp > Space){
   Comp -= Space;
   num = Space;
}else{
   num = Comp;
   Comp = 0;
}
GetObj('ISL_Cont').scrollLeft += num;
setTimeout('CompScr()',Speed);
}
}
//--><!]]>
</script> 


</body>
</html>